<div class="well" ng-controller="homeCtrl">
    <div class="page-header">
        <h3>轮播图片列表</h3>
    </div>
    <table class="table table-striped panel panel-success">
        <thead class="panel-heading">
        <tr>
            <th>编辑</th>
            <th>图片名称</th>
            <th>图片路径</th>
        </tr>
        </thead>
        <tbody>
        <tr ng-repeat="img in homeAdList">
            <td>
                <button class="btn" ng-click="editImg(img.imgurl,img.name)">
                    <span class="glyphicon glyphicon-pencil"></span>编辑
                </button>
            </td>
            <td>{{ img.name }}</td>
            <td>{{ img.imgurl }}</td>
        </tr>
        </tbody>
    </table>

    <!-- 文件上传 -->
    <!--<div class="file-box">-->
    <!--<input type="file" class="form-control fl" style="width:20%;" file-model="myFile"/>-->
    <!--<button class="btn btn-lg btn-default fl" style="margin-left: 1%" ng-click="upload()">上传</button>-->
    <!--<div style="clear:both;"></div>-->
    <!--</div>-->
    <div class="wrapper">
        <div class="f-cb fl" style="height: 40px;">
            <span class="fl mt5">文件上传：</span>
            <input type="text" class="inputBox fl ml5" ng-model="fileName"/>
            <button class="btn btn-primary ml10" ng-class="{'bg-bbbbbb':imgDisabled}"
                    style="width:84px; height:34px; position: relative;"
                    img-upload=""></button>

            <button class="btn btn-primary ml10 fl" ng-click="saveClick()"
                    ng-class="{'bg-bbbbbb':submitDisabled}">上传
            </button>
            <button class="btn btn-primary ml10 fl" ng-click="deleteImg()" ng-disabled="deleteDisabled"
                    ng-class="{'bg-bbbbbb':deleteDisabled}">删除
            </button>
        </div>
        <div class="f-cb" style="clear:both;">
            <span class="fl mt20">图片预览：</span>
            <div class="img-thumbnail ml5" style="margin-top:15px;width:300px; height: 200px;overflow: auto;">
                <img ng-src="{{thumb.imgSrc}}" style="width:290px;" ng-show="thumb.imgSrc"/>
            </div>
        </div>
    </div>

    <!--<div class="page-header">-->
        <!--<h3>轮播图片展示</h3>-->
    <!--</div>-->
    <!--<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">-->
        <!--&lt;!&ndash;<ol class="carousel-indicators">&ndash;&gt;-->
        <!--&lt;!&ndash;<li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>&ndash;&gt;-->
        <!--&lt;!&ndash;<li data-target="#carousel-example-generic" data-slide-to="1"></li>&ndash;&gt;-->
        <!--&lt;!&ndash;<li data-target="#carousel-example-generic" data-slide-to="2"></li>&ndash;&gt;-->
        <!--&lt;!&ndash;</ol>&ndash;&gt;-->
        <!--<div class="carousel-inner" role="listbox" ng-repeat="img in homeAdList">-->
            <!--<div ng-class="item,active:{{img.name=='a17.jpg'}}">-->
                <!--<img ng-src="{{rootUrl}}/{{ img.imgurl }}/{{img.name}}" alt="First slide"></img>-->
            <!--</div>-->
            <!--&lt;!&ndash;<div class="item">&ndash;&gt;-->
            <!--&lt;!&ndash;<img data-src="holder.js/1140x500/auto/#666:#444/text:Second slide" alt="Second slide"></img>&ndash;&gt;-->
            <!--&lt;!&ndash;</div>&ndash;&gt;-->
            <!--&lt;!&ndash;<div class="item">&ndash;&gt;-->
            <!--&lt;!&ndash;<img data-src="holder.js/1140x500/auto/#555:#333/text:Third slide" alt="Third slide"></img>&ndash;&gt;-->
            <!--&lt;!&ndash;</div>&ndash;&gt;-->
        <!--</div>-->
        <!--<a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">-->
            <!--<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>-->
            <!--<span class="sr-only">Previous</span>-->
        <!--</a>-->
        <!--<a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">-->
            <!--<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>-->
            <!--<span class="sr-only">Next</span>-->
        <!--</a>-->
    <!--</div>-->
    <script src="js/docs.min.js"></script>
</div>